package com.beiming.libra.domain;

import javax.persistence.Column;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@Table(name = "user_detail")
@ApiModel(value = "用户详细信息")
public class UserDetail extends BaseObject {

  /**
   * 用户id
   */
  @ApiModelProperty(value = "用户id")
  @Column(name = "user_id")
  private String userId;

  /**
   * 用户类型（个人/机构）
   */
  @ApiModelProperty(value = "用户类型")
  @Column(name = "user_type")
  private String userType;

  /**
   * 姓名/组织机构名称
   */
  @ApiModelProperty(value = "姓名/组织机构名称")
  @Column(name = "user_name")
  private String userName;

  /**
   * 邮箱
   */
  @ApiModelProperty(value = "邮箱")
  private String email;
  /**
   * 手机号
   */
  @ApiModelProperty(value = "手机号")
  private String mobilePhone;

  /**
   * 身份证号码/组织机构代码
   */
  @ApiModelProperty(value = "身份证号码/组织机构代码")
  private String code;

  /**
   * 性别
   */
  @ApiModelProperty(value = "性别")
  private String sex;

  /**
   * 民族
   */
  @ApiModelProperty(value = "民族")
  @Column(name = "civil_family")
  private String civilFamily;

  /**
   * 企业负责人
   */
  @ApiModelProperty(value = "企业负责人")
  @Column(name = "responsible_user")
  private String responsibleUser;

  /**
   * 企业负责人电话
   */
  @ApiModelProperty(value = "企业负责人电话")
  @Column(name = "responsible_phone")
  private String responsiblePhone;

  /**
   * 法定代表人
   */
  @ApiModelProperty(value = "法定代表人")
  @Column(name = "legal_user")
  private String legalUser;

  /**
   * 法定代表人职务
   */
  @ApiModelProperty(value = "法定代表人职务")
  @Column(name = "legal_user_job")
  private String legalUserJob;

  /**
   * 固定电话
   */
  @ApiModelProperty(value = "固定电话")
  @Column(name = "fixed_telephone")
  private String fixedTelephone;

  /**
   * 组织机构代码证件
   */
  @ApiModelProperty(value = "组织机构代码证件")
  @Column(name = "organization_code")
  private String organizationCode;

  /**
   * 身份证正面
   */
  @ApiModelProperty(value = "身份证正面")
  @Column(name = "id_card_front_url")
  private String idCardFrontUrl;

  /**
   * 身份证反面
   */
  @ApiModelProperty(value = "身份证反面")
  @Column(name = "id_card_back_url")
  private String idCardBackUrl;

  /**
   * 户籍地址/注册地址
   */
  @ApiModelProperty(value = "户籍地址/注册地址")
  @Column(name = "permanent_address")
  private String permanentAddress;

  /**
   * 当前地址/企业所在地址
   */
  @ApiModelProperty(value = "当前地址/企业所在地址")
  @Column(name = "current_address")
  private String currentAddress;

  /**
   * 邮寄地址
   */
  @ApiModelProperty(value = "邮寄地址")
  @Column(name = "mail_address")
  private String mailAddress;

  /**
   * 户籍地址/注册地址详细地址
   */
  @ApiModelProperty(value = "户籍地址/注册地址详细地址")
  @Column(name = "pdetail_address")
  private String pdetailAddress;

  /**
   * 当前地址/企业所在地址详细地址
   */
  @ApiModelProperty(value = "当前地址/企业所在地址详细地址")
  @Column(name = "cdetail_address")
  private String cdetailAddress;

  /**
   * 邮寄地址详细地址
   */
  @ApiModelProperty(value = "邮寄地址详细地址")
  @Column(name = "mdetail_address")
  private String mdetailAddress;

}